export const useContent = () => {
    const keyword = ref("");
    const dialogStore = useDialogStore();

    const onSearch = () => {
        navigateTo("/search.html?keyword=" + keyword.value);
    };

    const onClose = () => {
        dialogStore.isSearchDialogVisible = false;
    };

    return {
        keyword,
        onSearch,
        onClose,
    };
};
